﻿namespace ExceptionTest
{
    class Company
    {
        string name;
        string adress;
        int phone;
        int taxnumber;
        Person managingDirector;

        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public string Adress
        {
            get
            {
                return adress;
            }
            set
            {
                adress = value;
            }
        }

        public int Phone
        {
            get
            {
                return phone;
            }
            set
            {
                phone = value;
            }
        }

        public int Taxnumber
        {
            get
            {
                return taxnumber;
            }
            set
            {
                taxnumber = value;
            }
        }

        internal Person ManagingDirector
        {
            get
            {
                return managingDirector;
            }
            set
            {
                managingDirector = value;
            }
        }
    }
}